#include "swap_endian.h"

uint32_t SwapEndian::swap(uint32_t val)
{
    return ((val >> 24) & 0xff) |
           ((val << 8) & 0xff0000) |
           ((val >> 8) & 0xff00) |
           ((val << 24) & 0xff000000);
}